package com.ly.erms.common.constant.dicmap;

import com.ly.erms.common.constant.dicmap.base.AbstractDictMap;

/**
 * 用户的字典
 * @author liuyang
 * @date 2018年1月3日
 */
public class UserDict extends AbstractDictMap {

    @Override
    public void init() {
        putDictory("userId","账号");
        putDictory("avatar","头像");
        putDictory("account","账号");
        putDictory("name","名字");
        putDictory("birthday","生日");
        putDictory("sex","性别");
        putDictory("email","电子邮件");
        putDictory("phone","电话");
        putDictory("roleid","角色名称");
        putDictory("deptid","部门名称");
        putDictory("roleIds","角色名称集合");
    }

    @Override
    protected void initBeWrapped() {
    	putFieldWarpperDictory("sex","getSexName");
    	putFieldWarpperDictory("deptid","getDeptName");
    	putFieldWarpperDictory("roleid","getSingleRoleName");
    	putFieldWarpperDictory("userId","getUserAccountById");
    	putFieldWarpperDictory("roleIds","getRoleName");
    }
}
